package com.example.demo.mapper;

import com.example.demo.entity.DeviceEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceMapper {
    List<DeviceEntity> findAll(DeviceEntity device);

    boolean update(DeviceEntity device);

    boolean insert(DeviceEntity device);

    boolean delete(int id);

    int getCount(DeviceEntity device);

}
